#ifndef BOOKPAGE_H
#define BOOKPAGE_H

#include <QObject>
#include <QUrl>
#include <QtDeclarative/QDeclarativeItem>

class BookPage : public QObject
{
    Q_OBJECT    
    Q_PROPERTY(int pageNumber READ pageNumber CONSTANT)
    Q_PROPERTY(QUrl pageUrl READ pageUrl CONSTANT)

public:
    BookPage(QObject *parent = 0);

    void setPage(QString name);
    QUrl pageUrl() const;

    void setNumber(int index);
    int pageNumber() const;

signals:

public slots:

private:
    QUrl m_page;
    int m_index;

};

QML_DECLARE_TYPE(BookPage)

#endif // BOOKPAGE_H
